package handler

import (
	"app/services/hello/entity"
	pb "app/services/hello/proto"
	"context"
)

type Srv struct {
}

func (s *Srv) Hello(ctx context.Context, req *pb.Request, res *pb.Response) error {
	say := entity.Say{}
	r, err := say.Hello(req)
	if err != nil {
		return err
	}
	res.Msg = r.Msg
	return nil
}
